<template>
    <div class="usermes-container">
        <div class="top">
            <button class="btn btn-danger btn-sm" type="button" @click="go">后退</button>
            <h3 style="display:inline-block;color:red;">用户id详情信息</h3>
            <!-- 路由传参只能穿id -->
            <p>id==={{ id }}</p>
        </div>

    </div>
</template>

<script>
export default {
    name: "usermes",
    props: {
        id: {
            type: String,
            default: 0
        },
    }, methods: {
        go() {
            this.$router.go(-1);
        }
    }
}
</script>

<style scoped>
.top {
    height: 40px;
    line-height: 40px;
}
</style>